package com.magic.gre.mvp.contract;

import com.noname.lib_base_java.mvp.BaseContract;

import java.util.Map;

import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-31 16:04
 * 文件名: WXEntryContract
 * 描述:
 */
public interface WXEntryContract {
    interface Model extends BaseContract.BaseModel {
        void mAccessToken(Observer<ResponseBody> observer, String url, Map<String, Object> parms);

        void mWxLogin(Observer<ResponseBody> observer, String openid);

    }

    interface Presenter extends BaseContract.BasePresenter {
        void pAccessToken(String url, Map<String, Object> parms);

        void pWxLogin(String openid);
    }

    interface View extends BaseContract.BaseView {
        void vAccessToken(String accessToken, String openid);

        void vWxLoginSuc();

        void vWxLoginFail(int code, String openid,String msg);
    }
}
